package com.cn.stusy0015.demo0012;

/**
 * @author lw
 * @ClassName SbAppend.java
 * @Description
 * @createTime 2023年05月20日 14:44:00
 */
public class SbAppend {
    public static void main(String[] args) {
        StringBuffer sb = new StringBuffer("青春无悔");
        int num=100;
        StringBuffer sb1 = sb.append("我心永恒");
        System.out.println(sb1);
        StringBuffer sb2 = sb.append("啊");
        System.out.println(sb2);
        StringBuffer sb3 = sb.append("num");
        System.out.println(sb3);
        sb3.insert(4, ",");
        System.out.println(sb3);


    }
}
